﻿#include "mainWgt.h"
#include "ui_mainWgt.h"

mainWgt::mainWgt(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::mainWgt)
{
    ui->setupUi(this);
    initUI();
}

mainWgt::~mainWgt()
{
    delete ui;
}

void mainWgt::initUI()
{
    resize(1024,768);
    ui->titleWgt->setObjectName("frame1");
    ui->workframe->setObjectName("frame2");
    ui->detialframe->setObjectName("frame3");
    dynamic_cast<CustomSplitterHandle*>(ui->splitter->handle(1))->setBindForm(ui->detialframe);
    ui->splitter->setSizes(QList<int>()<<780<<244);
    ui->splitter->widget(1)->setMinimumWidth(244);

}
